<template>
	<view class="my-config">
		
		<view class="config-item" @tap="goPathList">
			<view class="path-active">地址管理</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">修改密码</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">绑定手机号码</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">绑定第三方账号</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">售后客服</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">系统设置</view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">消息推送</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">智能模式</view>
			<view class="config-mark"> > </view>
		</view>		<view class="config-item" @tap="goPathList">
			<view class="">给奥莱乐购好评</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">意见反馈</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">关于奥莱乐购</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">清理缓存</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">售后客服</view>
			<view class="config-mark"> > </view>
		</view>
		<view class="config-item" @tap="goPathList">
			<view class="">支持</view>
		</view>
		
		<view class="my-exit" @tap="outLogin">退出登录</view>
		
	</view>
</template>

<script>
	import { mapMutations } from 'vuex'
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			...mapMutations(['loginOut']),
			goPathList() {
				uni.navigateTo({
					url: "../my-path-list/my-path-list"
				})
			},
			// 点击退出登录
			outLogin() {
				uni.showToast({
					title:"退出成功",
					icon: "none"
				}),
				this.loginOut();
				uni.reLaunch({
					url: '../index/index'
				})
			}
		}
	}
</script>

<style scoped>
.config-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20rpx 0 20rpx  20rpx;
	border: 1rpx solid #f3f3f3;
}
.config-mark {
	padding-right: 26rpx;
	font-size: 18px;
	color: #808080;
}
.my-exit {
	background-color: #ff115c ;
	width: 100%;
	line-height: 100rpx;
	color: #FFFFFF;
	text-align: center;
}
.path-active {
	color: #ff115c;
}
</style>
